{include common/header}
{include common/left}
<div id="content">  
  <ul class="breadcrumb">
    <li><a href="javascript:;"><i class="icon-home"></i>公告列表</a> </li>
   </ul>
  <div class="container-fluid">
    <div class="row-fluid">
      <div class="span12">
        <div class="widget-box">
          <div class="widget-title"> 
            <h5><span class="icon"> <i class="icon-align-justify"></i> </span>{if $type==1}出租{else}出售{/if}房源列表</h5>
          </div>
          <div class="widget-content nopadding">
          
          <form id="newsform" action="{url('news/del')}" method="post" class="form-horizontal">
         
            <table class="table table-bordered table-striped table-hover">
					<thead>
						<tr>
						{if $_G['member']['usergroup']==1}<th width="30"><input type="checkbox" id="all" /></th>{/if}
							<th>标题</th>
							<th width="150">发布时间</th>											
							{if $_G['member']['usergroup']==1}<th width="100">操作</th>{/if}						
						</tr>
					</thead>
					<tbody>
					{loop $list $val}
						<tr>
							{if $_G['member']['usergroup']==1}<td><input type="checkbox" name="id[]" value="{$val['id']}" /></td>{/if}
							<td><a href="{url('news/show',array(id=>$val['id']) )}">{$val['title']}</a></td>
							<td>{date('Y-m-d H:i',$val['dateline'])}</td>							
							{if $_G['member']['usergroup']==1}<td>								
							<!--<a href="{url('estate/refresh',array('id'=>$val['id']))}">重新发布</a> -->							
							<a href="{url('news/edit',array('id'=>$val['id']))}">修改</a>	 
							<a href="{url('news/del',array('id'=>$val['id']))}">删除</a> 							
							</td>{/if}
						</tr>
				    {/loop}
					</tbody>
					<tfoot>
						<tr>
							<td colspan="11">							
							<!--<input class="btn btn-primary" type="button" id="rented" value="已出租" >
							<input class="btn btn-primary" type="button" id="norented" value="未出租" >							
							<input class="btn btn-success" type="button" id="status" value="审核确认" > 
							<input class="btn btn-primary" type="button" id="refresh" value="重新发布" > -->
							{if $_G['member']['usergroup']==1}<input class="btn btn-danger" type="submit" value="删除" > {/if}
							{$pagestring}</td>							
						</tr>
					</tfoot>
				</table>	
				
				</form>
          </div>
        </div>
        
      </div>
    </div>
  </div>
</div>
{include common/footer}